<template>
  <div>
    <h1>组件传值</h1>
    <!-- 如果子组件传递数据，则通过自定义属性的方式传递 -->
    <GoodsList uname="zs" age="20"></GoodsList>
  </div>
</template>

<script>
import GoodsList from "@/components/GoodsList.vue";
export default {
  components: {
    GoodsList, //GoodsList:GoodsList 的简写
  },
};
</script>

<style>
</style>